
<div id="title_right">
	<p id="title_right_left"></p>
	<div id="title_right_center">
		<p class="chu_title">CẬP NHẬT CHI TIẾT NHẬP HÀNG</p>
	</div>
	<p id="title_right_right"></p>
</div>


<?php //var_dump($ctn);
 //echo $_GET['id'];
 //var_dump($soluong);
//var_dump($data['listncc']);
//var_dump($data['listmathang']);
//var_dump($mh);
if($ctn){?>
<form name="frm_editctnhap" method="post" action="">
	<table class="table2">
	<tr> 
	<td align = "center" >Nhà cung cấp</td>
	<td>
		<select name = "cmb_ncc" size = "1">
		<?php 
		if(is_array($data['listncc'])){
			foreach ($data['listncc'] as $item){
		?>
			<option value = "<?php echo $item['MaNCC'];?>"
				<?php
					if($ctn['MaNCC'] == $item['MaNCC']){
						echo "selected";
					} 
					
				?>>
				<?php echo $item['TenNCC'];?>
			</option>
		<?php
			}
		}
		?>
		</select>
	</td>
</tr>
	<tr> 
	<td align = "center" >Mặt hàng</td>
	<td>
		<select name = "cmb_mathang" size = "1">
		<?php 
		if(is_array($data['listmathang'])){
			foreach ($data['listmathang'] as $item){
		?>
			<option value = "<?php echo $item['MaMH'];?>"
				<?php
					if($ctn['MaMH'] == $item['MaMH']){
						echo "selected";
					} 
					
				?>>
				<?php echo $item['TenMH'];?>
			</option>
		<?php
			}
		}
		?>
		</select>
	</td>
</tr>
		<tr>
			<td align="center">Đơn giá nhập</td>
			<td><input name="dongia" type="text"
				value="<?php echo $ctn['DonGiaNhap'];?>" />
			</td>
		</tr>
		<tr>
			<td align="center">Số lượng nhập</td>
			<td><input name="soluong" type="text"
				value="<?php echo $ctn['SoLuongNhap'];?>" />
			</td>
		</tr>
		<tr align="center" >
			<td colspan="2"><input name="btok" type="submit" value="Cập nhật" />
			</td>
		</tr>
	</table>
</form>
<?php }?>